import request from '@/utils/request'

// 修改分类
export const api_goods_editcate = data => request({
    method: 'post',
    url: '/goods/editcate',
    data
})
// 删除分类/goods/delcate
export const api_goods_delcate = params => request({
    method: 'get',
    url: '/goods/delcate',
    params
})
// 查询所有启用的分类名称

export const api_goods_categories = () => request({
    method: 'get',
    url: '/goods/categories',
})

// 获取商品分类
export const api_goods_catelist = params => request({
    method: 'get',
    url: '/goods/catelist',
    params
})

// 添加商品分类
export const api_goods_addcate = data => request({
    method: 'post',
    url: '/goods/addcate',
    data
})
